﻿using System.ComponentModel;

namespace QHW.Comp.AppEnum
{
    public class ErpEnum
    {
        ///// <summary>
        ///// 跟踪客户等级(意向度)
        ///// </summary>
        //public enum LevelType
        //{
        //    /// <summary>
        //    /// A级（意向度90%-99%）
        //    /// </summary>
        //    [Description("A级")]
        //    LevelA = 0,
        //    /// <summary>
        //    /// B级（意向度50%-90%）
        //    /// </summary>
        //    [Description("B级")]
        //    LevelB = 1,
        //    /// <summary>
        //    /// C级（意向度10%-50%）
        //    /// </summary>
        //    [Description("C级")]
        //    LevelC = 2,
        //    /// <summary>
        //    /// D级（意向度10%以下）
        //    /// </summary>
        //    [Description("D级")]
        //    LevelD = 3
        //}

        /// <summary>
        /// 公告客户还是个人客户
        /// </summary>
        public enum IsOwn
        {
            /// <summary>
            /// 个人跟踪中
            /// </summary>
            [Description("个人跟踪中客户")]
            Personal = 0,
            /// <summary>
            /// 公司公共
            /// </summary>
            [Description("公司公共客户")]
            Public = 1,
            /// <summary>
            /// 个人申领中
            /// </summary>
            [Description("个人申领中客户")]
            Holding = 2,
            /// <summary>
            /// 已签单客户
            /// </summary>
            [Description("已签单客户")]
            Olding = 3,
            /// <summary>
            /// 等待三方审核
            /// </summary>
            [Description("等待三方审核")]
            WaitApply = 4,
            /// <summary>
            /// 三方审核驳回
            /// </summary>
            [Description("三方审核驳回")]
            NoPassApply = 5
        }
        
        /// <summary>
        /// 订单缴费方式
        /// </summary>
        public enum PaymentType
        {
            /// <summary>
            /// 现金
            /// </summary>
            [Description("现金")]
            XianJin = 0,
            /// <summary>
            /// 转账
            /// </summary>
            [Description("转账")]
            ZhuanZhang = 1
        }

        /// <summary>
        /// 开发语言
        /// </summary>
        public enum DevelopLanguage
        {
            /// <summary>
            /// ASP.NET
            /// </summary>
            [Description("ASP.NET")]
            Aspnet = 1,
            /// <summary>
            /// PHP
            /// </summary>
            [Description("PHP")]
            Php = 2
        }

        /// <summary>
        /// 页面语言
        /// </summary>
        public enum PageLanguage
        {
            /// <summary>
            /// 简体中文
            /// </summary>
            [Description("简体中文")]
            JianZhong = 1,
            /// <summary>
            /// 繁体中文
            /// </summary>
            [Description("繁体中文")]
            FanZhong = 2,
            /// <summary>
            /// 中英
            /// </summary>
            [Description("中英")]
            ZhongYing = 3,
            /// <summary>
            /// 英文
            /// </summary>
            [Description("英文")]
            YingWen = 4
        }

        /// <summary>
        /// 订单缴费银行
        /// </summary>
        public enum PaymentBank
        {
            /// <summary>
            /// 现金
            /// </summary>
            [Description("现金")]
            XianJin = 0,
            /// <summary>
            /// 快钱
            /// </summary>
            [Description("快钱")]
            KuaiQian = 1,
            /// <summary>
            /// 招行
            /// </summary>
            [Description("招行")]
            ZhaoHang = 2,
            /// <summary>
            /// 工行
            /// </summary>
            [Description("工行")]
            GongHang = 3,
            /// <summary>
            /// 光大
            /// </summary>
            [Description("光大")]
            GuangDa = 4,
            /// <summary>
            /// 中行
            /// </summary>
            [Description("中行")]
            ZhongHang = 5,
            /// <summary>
            /// 农行
            /// </summary>
            [Description("农行")]
            NongHang = 6
        }
        
        /// <summary>
        /// 订单制作进度
        /// </summary>
        public enum AssignSchedule
        {
            /// <summary>
            /// 未开始
            /// </summary>
            [Description("未开始")]
            NotStarted = 1,
            /// <summary>
            /// 制作中
            /// </summary>
            [Description("制作中")]
            Making = 2,
            /// <summary>
            /// 暂停中
            /// </summary>
            [Description("暂停中")]
            Pause = 3,
            /// <summary>
            /// 已完成
            /// </summary>
            [Description("已完成")]
            Complete = 4,
            /// <summary>
            /// 已终止
            /// </summary>
            [Description("已终止")]
            Over = 5
        }

        /// <summary>
        /// 是否已收全款
        /// </summary>
        public enum IsFullAmount
        {
            /// <summary>
            /// 未收全款
            /// </summary>
            [Description("未收全款")]
            NotFull = 0,
            /// <summary>
            /// 已收全款
            /// </summary>
            [Description("已收全款")]
            Full = 1
        }

        /// <summary>
        /// 订单制作详细步骤
        /// </summary>
        public enum AssignSteps
        {
            /// <summary>
            /// 空间域名注册
            /// </summary>
            [Description("空间域名注册")]
            Step1 = 1,
            /// <summary>
            /// 初步沟通设计要求及索取资料
            /// </summary>
            [Description("初步沟通设计要求及索取资料")]
            Step2 = 2,
            /// <summary>
            /// 初稿设计完毕联系客户确认版面
            /// </summary>
            [Description("初稿设计完毕联系客户确认版面")]
            Step3 = 3,
            /// <summary>
            /// 网站页面制作完成通知客户网站进度
            /// </summary>
            [Description("网站页面制作完成通知客户网站进度")]
            Step4 = 4,
            /// <summary>
            /// 程序接手添加程序联系客户
            /// </summary>
            [Description("程序接手添加程序联系客户")]
            Step5 = 5,
            /// <summary>
            /// 网站制作完成 联系客户测试网站
            /// </summary>
            [Description("网站制作完成 联系客户测试网站")]
            Step6 = 6,
            /// <summary>
            /// 客户反馈问题整理修改
            /// </summary>
            [Description("客户反馈问题整理修改")]
            Step7 = 7,
            /// <summary>
            /// 联系客户确认网站
            /// </summary>
            [Description("联系客户确认网站")]
            Step8 = 8
        }

        /// <summary>
        /// 审核状态
        /// </summary>
        public enum CheckState
        {
            /// <summary>
            /// 未审核
            /// </summary>
            [Description("未审核")]
            UnChecked = 0,
            /// <summary>
            /// 通过
            /// </summary>
            [Description("通过")]
            Pass = 1,
            /// <summary>
            /// 不通过
            /// </summary>
            [Description("不通过")]
            NoPass = 2
        }

        /// <summary>
        /// 质保金状态
        /// </summary>
        public enum ComeMoneyType
        {
            /// <summary>
            /// 未提交
            /// </summary>
            [Description("未提交")]
            UnChecked = 0,
            /// <summary>
            /// 通过
            /// </summary>
            [Description("正在审核中")]
            Checking = 1,
            /// <summary>
            /// 不通过
            /// </summary>
            [Description("审核通过")]
            Pass = 2,
            /// <summary>
            /// 审核不通过
            /// </summary>
            [Description("审核不通过")]
            NoPass = 3
        }

        /// <summary>
        /// 审核类型
        /// </summary>
        public enum CheckType
        {
            /// <summary>
            /// 事业部金额审核
            /// </summary>
            [Description("事业部金额审核")]
            WangZhanShiYe = 1,
            /// <summary>
            /// 客服助理审核
            /// </summary>
            [Description("客服助理审核")]
            KeFuZhuLi = 2,
            /// <summary>
            /// 合同审核
            /// </summary>
            [Description("合同审核")]
            HeTong = 3,
            /// <summary>
            /// 财务审核
            /// </summary>
            [Description("财务审核")]
            CaiWu = 4,
            /// <summary>
            /// 总经理审核
            /// </summary>
            [Description("总经理审核")]
            ZongJingLi = 5,
            /// <summary>
            /// 网站事业部分单
            /// </summary>
            [Description("网站事业部分单")]
            FenDan = 6,
            /// <summary>
            /// 客服助理单子完成审核
            /// </summary>
            [Description("客服助理单子完成审核")]
            KeFuZhuLiComplete = 7
        }

        /// <summary>
        /// 续费类型
        /// </summary>
        public enum ServiceType
        {
            /// <summary>
            /// 网站维护费
            /// </summary>
            [Description("网站维护费")]
            WeiHu = 1,
            /// <summary>
            /// 空间费
            /// </summary>
            [Description("空间费")]
            KongJian = 2,
            /// <summary>
            /// 域名费
            /// </summary>
            [Description("域名费")]
            YuMing = 3,
            /// <summary>
            /// 企业邮箱
            /// </summary>
            [Description("企业邮箱")]
            YouXiang = 4,
            /// <summary>
            /// 400电话
            /// </summary>
            [Description("400电话")]
            DianHua = 5,
            /// <summary>
            /// 支付全款
            /// </summary>
            [Description("支付余额")]
            QuanKuan=6,
            /// <summary>
            /// 质保金
            /// </summary>
            [Description("质保金")]
            ZhiBao = 7,
            /// <summary>
            /// 折扣金额
            /// </summary>
            [Description("折扣金")]
            ZheKou = 8
        }

        /// <summary>
        /// 续费状态
        /// </summary>
        public enum ServiceState
        {
            /// <summary>
            /// 财务审核
            /// </summary>
            [Description("财务审核")]
            CaiWu = 1,
            /// <summary>
            /// 运维操作
            /// </summary>
            [Description("运维操作")]
            YunWei = 2,
            /// <summary>
            /// 信息部操作
            /// </summary>
            [Description("信息部操作")] 
            XinXiBu = 3,
            /// <summary>
            /// 总经理审核
            /// </summary>
            [Description("总经理审核")]
            ZongJingLi = 4
        }

        /// <summary>
        /// 部门
        /// </summary>
        public enum Department
        {
            /// <summary>
            /// erp事业部主管
            /// </summary>
            [Description("erp事业部主管")]
            ShiYeZhuGuan = 509,
            /// <summary>
            /// erp事业部设计人员组
            /// </summary>
            [Description("erp事业部设计人员组")]
            Designer = 510,
            /// <summary>
            /// erp事业部程序人员组
            /// </summary>
            [Description("erp事业部程序人员组")]
            Programmer = 511,
            /// <summary>
            /// erp客服部员工组
            /// </summary>
            //[Description("erp客服部员工组")]
            //CustomService = 406,
            /// <summary>
            /// erp销售经理组
            /// </summary>
            //[Description("erp销售经理组")]
            //SalesManJingLi = 301,
            ///// <summary>
            ///// erp销售主管组
            ///// </summary>
            //[Description("erp销售主管组")]
            //SalesManZhuGuan = 902,
            ///// <summary>
            ///// erp销售员工组
            ///// </summary>
            //[Description("erp销售员工组")]
            //SalesMan = 903,
            /// <summary>
            /// 运维人员（负责空间域名）
            /// </summary>
            [Description("erp运维组 ")]
            Coder = 513,
            /// <summary>
            /// 运维人员（负责400电话）
            /// </summary>
            [Description("erp运维2组 ")]
            Coder2 = 914,
            /// <summary>
            /// 财务审核人员
            /// </summary>
            [Description("财务组")]
            Financer = 407

        }

        /// <summary>
        /// 质保金
        /// </summary>
        public enum ZhiBaoJin
        {
            /// <summary>
            /// 无质保金
            /// </summary>
            [Description("无质保金")]
            NotZhiBao = 0,
            /// <summary>
            /// 未支付
            /// </summary>
            [Description("未支付")]
            NoPayment = 1,
            /// <summary>
            /// 已确认支付
            /// </summary>
            [Description("已确认支付")]
            Payment = 2,
            /// <summary>
            /// 财务驳回已支付申请
            /// </summary>
            [Description("财务驳回已支付申请")]
            NoPassPayment = 3

        }

        /// <summary>
        /// 发票开客户类型
        /// </summary>
        public enum InvoiceCustomerType
        {
            /// <summary>
            /// 新客户
            /// </summary>
            [Description("新客户")]
            NewCustomer = 0,
            /// <summary>
            /// 老客户
            /// </summary>
            [Description("老客户")]
            OldCustomer = 1
        }

        /// <summary>
        /// 空间维护
        /// </summary>
        public enum SpaceWeiHu
        {
            /// <summary>
            /// 购买并维护
            /// </summary>
            [Description("购买并维护")]
            SpaceWeiHu = 1,
            /// <summary>
            /// 购买不维护
            /// </summary>
            [Description("购买不维护")]
            SpaceNoWeiHu = 2,
            /// <summary>
            /// 未购买但维护
            /// </summary>
            [Description("未购买但维护")]
            NoSpaceWeiHu = 3,
            /// <summary>
            /// 未购买不维护
            /// </summary>
            [Description("未购买不维护")]
            NoSpaceNoWeiHu = 4
        }

        /// <summary>
        /// 客服修改维护类型
        /// </summary>
        public enum ServiceHoldType
        {
            /// <summary>
            /// 默认类型（刚分下来时）
            /// </summary>
            [Description("默认类型")]
            MoRen = 0,
            /// <summary>
            /// 空间维护
            /// </summary>
            [Description("空间维护")]
            KongJian = 1,
            /// <summary>
            /// 域名维护
            /// </summary>
            [Description("域名维护")]
            YuMing = 2,
            /// <summary>
            /// 空间、域名维护
            /// </summary>
            [Description("空间、域名维护")]
            KongjianYuming = 3,
            /// <summary>
            /// 正常维护
            /// </summary>
            [Description("正常维护")]
            ZhengChang = 4,
            /// <summary>
            ///失效
            /// </summary>
            [Description("失效")]
            ShiXiao = 5
        }

        //public enum Quan

        /// <summary>
        /// 页面功能类型
        /// </summary>
        public enum PageLogType
        {
            /// <summary>
            /// 销售操作
            /// </summary>
            [Description("销售操作")]
            XiaoShouOperate = 101,
            /// <summary>
            /// 客服助理操作
            /// </summary>
            [Description("客服助理操作")]
            KeFuZhuLiOperate = 102,
            /// <summary>
            /// 合同操作
            /// </summary>
            [Description("合同操作")]
            HeTongOperate = 103,
            /// <summary>
            /// 财务操作
            /// </summary>
            [Description("财务操作")]
            CaiWuOperate = 104,
            /// <summary>
            /// 事业部操作
            /// </summary>
            [Description("事业部操作")]
            ShiYeBuOperate = 105,
            /// <summary>
            /// 客服操作
            /// </summary>
            [Description("客服操作")]
            KeFuOperate = 106,
            /// <summary>
            /// 运维操作
            /// </summary>
            [Description("运维操作")]
            YunWeiOperate = 107,
            /// <summary>
            /// 总经理操作
            /// </summary>
            [Description("总经理操作")]
            ZongJingLiOperate = 108

        }


        #region 方法
        /// <summary>
        /// 获取客户意向度
        /// </summary>
        /// <param name="levelType"></param>
        /// <returns></returns>
        public static string GetDetailBylevelType(int levelType)
        {
            #region
            string strReturn;
            switch (levelType)
            {
                case 0:
                    strReturn = "A级（意向度90%-99%）";
                    break;
                case 1:
                    strReturn = "B级（意向度50%-90%）";
                    break;
                case 2:
                    strReturn = "C级（意向度10%-50%）";
                    break;
                case 3:
                    strReturn = "D级（意向度10%以下）";
                    break;
                default:
                    strReturn = "未选择意向度";
                    break;
            }
            return strReturn;
            #endregion
        }
        /// <summary>
        /// 获取IsOwn类型
        /// </summary>
        /// <param name="isOwn"></param>
        /// <returns></returns>
        public static string GetDetailByIsOwn(int isOwn)
        {
            #region

            string strReturn;
            switch (isOwn)
            {
                case 0:
                    strReturn = "个人跟踪中客户";
                    break;
                case 1:
                    strReturn = "公司公共客户";
                    break;
                case 2:
                    strReturn = "个人申领中客户";
                    break;
                case 3:
                    strReturn = "老客户";
                    break;
                default:
                    strReturn = "未标记";
                    break;
            }
            return strReturn;
            #endregion
        }
        /// <summary>
        /// 获取审核类型
        /// </summary>
        /// <param name="typeId"></param>
        /// <returns></returns>
        public static string GetDetailByCheckType(int typeId)
        {
            #region

            string strReturn;
            switch (typeId)
            {
                case 1:
                    strReturn = "事业部金额审核";
                    break;
                case 2:
                    strReturn = "客服助理审核";
                    break;
                case 3:
                    strReturn = "合同审核";
                    break;
                case 4:
                    strReturn = "财务审核";
                    break;
                case 5:
                    strReturn = "总经理审核";
                    break;
                case 6:
                    strReturn = "事业部分单";
                    break;
                case 7:
                    strReturn = "客服助理单子完成审核";
                    break;

                default:
                    strReturn = "无";
                    break;
            }
            return strReturn;
            #endregion
        }
        /// <summary>
        /// 获取转账银行
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static string GetDetailByPaymentBank(int id)
        {
            #region

            string strReturn;
            switch (id)
            {
                case 1:
                    strReturn = "快钱";
                    break;
                case 2:
                    strReturn = "招行";
                    break;
                case 3:
                    strReturn = "工行";
                    break;
                case 4:
                    strReturn = "光大";
                    break;
                case 5:
                    strReturn = "中行";
                    break;
                case 6:
                    strReturn = "农行";
                    break;

                default:
                    strReturn = "无";
                    break;
            }
            return strReturn;
            #endregion
        }
        #endregion
    }
}
